package com.kaifamiao.demo.d0804;

public class Demo07 {

    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer("hello");

        sb.append("Java");
        sb.append("C++");

        sb.append("a").append("b").append("c");


        System.out.println(sb.toString());

        sb = sb.reverse();
        System.out.println(sb);

//        StringBuilder sb1 = new StringBuilder();
    }
}
